#required NFS-VltEd version
version 4.5
#target game
game C
#mod description
ui_text Need For Speed Carbon Improved Pursuits
ui_text 
ui_text Hello, thanks for installing this mod
ui_text This mod aims to buff the police and make them balanced
ui_text Heat level 6-10 has only undercover Corvettes, undercover GTO and Rhino chasing the player
ui_text Some people might find this easy, that's because I wanted to make the police balanced and escapable
ui_text This is my first mod for NFSC so I'm still learning some stuff

#checkbox
ui_control checkbox option1_checkbox false "Optional: Fix Police Corvette wheel width."
#checkbox
ui_control checkbox option2_checkbox false "Optional: Extends the wheel width if you replaced COPSPORTGHOST with the model provided in the files."
#checkbox
ui_control checkbox option3_checkbox false "Optional: Cross appearing with his car from intro."

#images
ui_image policemod.png

#images
ui_image policemod2.png

#images
ui_image policemod3.png

#images
ui_image busted.png

### PRIMARY DATABASE SCRIPT ###

update_field pursuitlevels heat_01 BackupCallTimer 130
update_field pursuitlevels heat_01 cops[0] Count 6
update_field pursuitlevels heat_01 FullEngagementCopCount 15
update_field pursuitlevels heat_01 NumCiviHitsFor911 7
update_field pursuitlevels heat_01 roadblockprobability 10
update_field pursuitlevels heat_01 SearchModeRoadblockChance 2
update_field pursuitlevels heat_01 TimeBetweenFirstFourSpawn 15
update_field pursuitlevels heat_01 TimeBetweenCopSpawn 7
update_field pursuitlevels heat_02 BackupCallTimer 130
update_field pursuitlevels heat_02 cops[0] Count 8
update_field pursuitlevels heat_02 FullEngagementCopCount 20
update_field pursuitlevels heat_02 NumCiviHitsFor911 7
update_field pursuitlevels heat_02 roadblockprobability 15
update_field pursuitlevels heat_02 SearchModeRoadblockChance 5
update_field pursuitlevels heat_02 SearchModeRoadblockChance 3
update_field pursuitlevels heat_02 TimeBetweenFirstFourSpawn 15
update_field pursuitlevels heat_02 TimeBetweenCopSpawn 6
update_field pursuitlevels heat_03 BackupCallTimer 110
update_field pursuitlevels heat_03 cops[0] Count 10
update_field pursuitlevels heat_03 FullEngagementCopCount 30
update_field pursuitlevels heat_03 NumCiviHitsFor911 7
update_field pursuitlevels heat_03 NumPatrolCars 2
update_field pursuitlevels heat_03 TimeBetweenFirstFourSpawn 15
update_field pursuitlevels heat_04 BackupCallTimer 110
update_field pursuitlevels heat_04 cops[0] Count 12
update_field pursuitlevels heat_04 FullEngagementCopCount 40
update_field pursuitlevels heat_04 NumCiviHitsFor911 7
update_field pursuitlevels heat_04 NumPatrolCars 2
update_field pursuitlevels heat_04 SearchModeRoadblockChance 5
update_field pursuitlevels heat_05 BackupCallTimer 100
update_field pursuitlevels heat_05 cops[0] Count 15
update_field pursuitlevels heat_05 cops[0] Chance 100
update_field pursuitlevels heat_05 FullEngagementCopCount 50
update_field pursuitlevels heat_05 NumPatrolCars 2
update_field pursuitlevels heat_05 SearchModeRoadblockChance 5
update_field pursuitlevels heat_06 cops[0] CopType copsportghost
update_field pursuitlevels heat_06 cops[0] Count 18
update_field pursuitlevels heat_06 BackupCallTimer 90
update_field pursuitlevels heat_06 BoxinDuration 9
update_field pursuitlevels heat_06 CollapseOuterRadius 5
update_field pursuitlevels heat_06 FullEngagementCopCount 55
update_field pursuitlevels heat_06 NumCiviHitsFor911 7
update_field pursuitlevels heat_06 NumPatrolCars 2
update_field pursuitlevels heat_06 roadblockprobability 50
update_field pursuitlevels heat_06 roadblockspikechance 80
update_field pursuitlevels heat_06 TimeToHideInZone 1
update_field pursuitlevels heat_06 TimePerHeatLevel 1
update_field pursuitlevels heat_06 TimeBetweenCopSpawn 2
update_field pursuitlevels heat_06 TimeBetweenFirstFourSpawn 7
update_field pursuitlevels heat_08 CollapseSpeed 120
update_field pursuitlevels heat_08 BackupCallTimer 75
update_field pursuitlevels heat_08 BoxinDuration 11
update_field pursuitlevels heat_08 cops[2] Count 6
update_field pursuitlevels heat_08 cops[1] Count 10
update_field pursuitlevels heat_08 cops[0] Count 15
update_field pursuitlevels heat_08 DestroyCopBonusTime 10
update_field pursuitlevels heat_06 evadetimeout 140
update_field pursuitlevels heat_08 evadetimeout 180
update_field pursuitlevels heat_08 frontLOSdistance 151
update_field pursuitlevels heat_08 FullEngagementCopCount 65
update_field pursuitlevels heat_08 FullEngagementRadius 50
update_field pursuitlevels heat_08 heliLOSdistance 251
update_field pursuitlevels heat_08 MaxCopsCollapsing 8
update_field pursuitlevels heat_08 MilestoneCompleteHeatAdjust 1
update_field pursuitlevels heat_08 NumCiviHitsFor911 7
update_field pursuitlevels heat_08 NumCopsToTriggerBackup 2
update_field pursuitlevels heat_08 rearLOSdistance 151
update_field pursuitlevels heat_08 roadblockspikechance 80
update_field pursuitlevels heat_08 roadblockprobability 70
update_field pursuitlevels heat_08 TimeToHideInZone 1
update_field pursuitlevels heat_08 TimePerHeatLevel 1
update_field pursuitlevels heat_08 TimeBetweenFirstFourSpawn 5
update_field pursuitlevels heat_08 SearchModeRoadblockChance 5
update_field pursuitlevels heat_06 SearchModeRoadblockChance 5
delete_node pursuitlevels heat_07
copy_node pursuitlevels heat_08 default heat_07
update_field pursuitlevels heat_07 cops[0] Count 13
update_field pursuitlevels heat_07 cops[1] Count 8
update_field pursuitlevels heat_07 cops[2] Count 4
update_field pursuitlevels heat_06 BustSpeed 27
update_field pursuitlevels heat_07 BustSpeed 30
update_field pursuitlevels heat_08 BustSpeed 32
update_field pursuitlevels heat_07 CollapseOuterRadius 5
update_field pursuitlevels heat_08 CollapseOuterRadius 5
update_field pursuitlevels heat_07 CollapseAggression 0.8
update_field pursuitlevels heat_08 CollapseAggression 0.8
update_field pursuitlevels heat_07 evadetimeout 160
update_field pursuitlevels heat_07 FullEngagementCopCount 60
update_field pursuitlevels heat_07 roadblockprobability 60
update_field pursuitlevels heat_07 TimeBetweenFirstFourSpawn 6
update_field pursuitlevels heat_07 SearchModeRoadblockRadius 10000
update_field pursuitlevels heat_08 SearchModeRoadblockRadius 10000
delete_node pursuitlevels heat_09
copy_node pursuitlevels heat_08 default heat_09
update_field pursuitlevels heat_09 cops[0] Count 17
update_field pursuitlevels heat_09 cops[1] Count 12
update_field pursuitlevels heat_09 cops[2] Count 8
update_field pursuitlevels heat_09 evadetimeout 190
update_field pursuitlevels heat_07 BoxinDuration 10
update_field pursuitlevels heat_09 BoxinDuration 12
update_field pursuitlevels heat_09 FullEngagementCopCount 65
update_field pursuitlevels heat_09 NumCopsToTriggerBackup 3
update_field pursuitlevels heat_09 roadblockprobability 80
update_field pursuitlevels heat_09 TimeBetweenFirstFourSpawn 4
update_field pursuitlevels heat_07 RollingBlockTightness 1
update_field pursuitlevels heat_08 RollingBlockTightness 1
update_field pursuitlevels heat_09 RollingBlockTightness 1
update_field pursuitlevels heat_06 RollingBlockTightness 9
update_field pursuitlevels heat_07 RollingBlockDuration 10
update_field pursuitlevels heat_08 RollingBlockDuration 11
update_field pursuitlevels heat_09 RollingBlockDuration 12
update_field pursuitlevels heat_06 TimePerHeatLevel 160
update_field pursuitlevels heat_07 TimePerHeatLevel 170
update_field pursuitlevels heat_08 TimePerHeatLevel 180
update_field pursuitlevels heat_09 TimePerHeatLevel 180
delete_node pursuitlevels heat_10
copy_node pursuitlevels heat_09 default heat_10
update_field pursuitlevels heat_10 cops[0] Count 20
update_field pursuitlevels heat_10 cops[1] Count 15
update_field pursuitlevels heat_10 cops[2] Count 14
update_field pursuitlevels heat_10 BoxinDuration 13
update_field pursuitlevels heat_07 BoxinTightness 1
update_field pursuitlevels heat_08 BoxinTightness 1
update_field pursuitlevels heat_09 BoxinTightness 1
update_field pursuitlevels heat_10 BoxinTightness 1
update_field pursuitlevels heat_07 BackupCallTimer 85
update_field pursuitlevels heat_08 BackupCallTimer 79
update_field pursuitlevels heat_08 BackupCallTimer 75
update_field pursuitlevels heat_09 BackupCallTimer 70
update_field pursuitlevels heat_10 BackupCallTimer 65
update_field pursuitlevels heat_10 evadetimeout 200
update_field pursuitlevels heat_10 FullEngagementCopCount 75
update_field pursuitlevels heat_10 NumCopsToTriggerBackup 2
update_field pursuitlevels heat_09 NumCopsToTriggerBackup 2
update_field pursuitlevels heat_10 NumPatrolCars 4
update_field pursuitlevels heat_10 roadblockprobability 90
update_field pursuitlevels heat_10 TimePerHeatLevel 1
update_field pursuitlevels heat_10 TimeBetweenFirstFourSpawn 2
update_field pursuitlevels heat_10 SearchModeRoadblockChance 10
update_field pursuitlevels heat_10 RollingBlockDuration 13
update_field aivehicle copsuv AccelerationMultiplier 1.1
update_field aivehicle copsuv TopSpeedMultiplier 1
update_field aivehicle copsuv MAXIMUM_AI_SPEED 300
update_field pursuitsupport support03 HeavySupportOptions[0] Chance 15
update_field pursuitsupport support03 HeavySupportOptions[0] Duration 50
update_field pursuitsupport support03 HeavySupportOptions[1] Duration 50
delete_node pursuitsupport support02
copy_node pursuitsupport support03 default support02
update_field pursuitsupport support02 HeavySupportOptions[0] Chance 10
update_field pursuitsupport support02 HeavySupportOptions[0] Duration 40
update_field pursuitsupport support02 HeavySupportOptions[1] Duration 40
update_field pursuitsupport support02 HeavySupportOptions[1] Chance 15
update_field pursuitsupport support04 HeavySupportOptions[0] Duration 60
update_field pursuitsupport support04 HeavySupportOptions[1] Duration 60
update_field pursuitsupport support05 HeavySupportOptions[0] Duration 70
update_field pursuitsupport support05 HeavySupportOptions[1] Duration 70
update_field pursuitsupport support05 HeavySupportOptions[0] Chance 45
update_field pursuitsupport support05 HeavySupportOptions[1] Chance 50
delete_node pursuitsupport support06
copy_node pursuitsupport support05 default support06
update_field pursuitsupport support06 HeavySupportOptions[0] Chance 55
update_field pursuitsupport support06 HeavySupportOptions[1] Chance 60
delete_node pursuitsupport support07
copy_node pursuitsupport support06 default support07
update_field pursuitsupport support07 HeavySupportOptions[0] Chance 65
update_field pursuitsupport support07 HeavySupportOptions[1] Chance 70
delete_node pursuitsupport support08
copy_node pursuitsupport support07 default support08
update_field pursuitsupport support08 HeavySupportOptions[0] Chance 70
update_field pursuitsupport support08 HeavySupportOptions[1] Chance 75
delete_node pursuitsupport support09
copy_node pursuitsupport support08 default support09
update_field pursuitsupport support09 HeavySupportOptions[0] Chance 75
update_field pursuitsupport support09 HeavySupportOptions[1] Chance 80
delete_node pursuitsupport support10
copy_node pursuitsupport support09 default support10
update_field pursuitsupport support10 HeavySupportOptions[0] Chance 80
update_field pursuitsupport support10 HeavySupportOptions[1] Chance 85
update_field pursuitsupport support05 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport support05 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport support05 LeaderSupportOptions[0] PriorityChance 0
update_field pursuitsupport support05 LeaderSupportOptions[0] PriorityTime 0
update_field pursuitsupport support06 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport support06 LeaderSupportOptions[0] PriorityChance 0
update_field pursuitsupport support06 LeaderSupportOptions[0] PriorityTime 0
update_field pursuitsupport support06 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport support07 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport support07 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport support07 LeaderSupportOptions[0] PriorityChance 0
update_field pursuitsupport support07 LeaderSupportOptions[0] PriorityTime 0
update_field pursuitsupport support08 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport support08 LeaderSupportOptions[0] PriorityChance 0
update_field pursuitsupport support08 LeaderSupportOptions[0] PriorityTime 0
update_field pursuitsupport support08 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport support09 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport support09 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport support09 LeaderSupportOptions[0] PriorityChance 0
update_field pursuitsupport support09 LeaderSupportOptions[0] PriorityTime 0
update_field pursuitsupport support10 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport support10 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport support10 LeaderSupportOptions[0] PriorityChance 0
update_field pursuitsupport support10 LeaderSupportOptions[0] PriorityTime 0
update_field pursuitlevels race_01 cops[0] Count 8
update_field pursuitlevels race_03 cops[0] Count 10
update_field pursuitlevels race_02 cops[0] Count 10
update_field pursuitlevels race_03 cops[0] Count 12
update_field pursuitlevels race_04 cops[0] Count 16
update_field pursuitlevels race_04 cops[0] Count 14
update_field pursuitlevels race_05 cops[0] Count 16
update_field pursuitlevels race_06 cops[0] Count 18
update_field pursuitlevels race_05 cops[0] Count 17
update_field pursuitlevels race_06 cops[0] Count 20
update_field pursuitlevels race_07 cops[0] CopType copsportghost
update_field pursuitlevels race_07 cops[0] Count 30
update_field pursuitlevels race_08 cops[0] CopType copsportghost
update_field pursuitlevels race_08 cops[0] Count 35
update_field pursuitlevels race_09 cops[0] CopType copsportghost
update_field pursuitlevels race_09 cops[0] Count 40
update_field pursuitlevels race_10 cops[0] CopType copsportghost
update_field pursuitlevels race_10 cops[0] Count 45
update_field pursuitsupport supportrace_08 HeavySupportOptions[0] Chance 0
update_field pursuitsupport supportrace_08 HeavySupportOptions[0] Duration 0
update_field pursuitsupport supportrace_08 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport supportrace_08 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport supportrace_01 HeavySupportOptions[0] Duration 0
update_field pursuitsupport supportrace_02 HeavySupportOptions[0] Duration 0
update_field pursuitsupport supportrace_09 HeavySupportOptions[0] Duration 0
update_field pursuitsupport supportrace_09 HeavySupportOptions[0] Chance 0
update_field pursuitsupport supportrace_09 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport supportrace_09 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport supportrace_10 LeaderSupportOptions[0] Chance 0
update_field pursuitsupport supportrace_10 LeaderSupportOptions[0] Duration 0
update_field pursuitsupport supportrace_10 HeavySupportOptions[0] Chance 0
update_field pursuitsupport supportrace_10 HeavySupportOptions[0] Duration 0
update_field pursuitlevels race_10 NumPatrolCars 7
update_field pursuitlevels race_09 NumPatrolCars 6
update_field pursuitlevels race_08 NumPatrolCars 5
update_field pursuitlevels race_07 NumPatrolCars 5
update_field pursuitlevels race_06 NumPatrolCars 5
update_field pursuitlevels race_05 NumPatrolCars 5
update_field pursuitlevels race_04 NumPatrolCars 4
update_field pursuitlevels race_03 NumPatrolCars 4
update_field pursuitlevels race_10 roadblockspikechance 80
update_field pursuitlevels race_10 roadblockprobability 90
update_field pursuitlevels race_10 roadblockprobability 70
update_field pursuitlevels race_09 roadblockprobability 60
update_field pursuitlevels race_09 roadblockspikechance 80
update_field pursuitlevels race_09 roadblockprobability 65
update_field pursuitlevels race_08 roadblockprobability 60
update_field pursuitlevels race_08 roadblockspikechance 80
update_field pursuitlevels race_07 roadblockspikechance 80
update_field pursuitlevels race_07 roadblockprobability 55
update_field pursuitlevels race_06 roadblockprobability 50
update_field pursuitlevels race_06 roadblockspikechance 80
update_field pursuitlevels race_05 roadblockspikechance 80
update_field pursuitlevels race_05 roadblockprobability 45
update_field pursuitlevels race_04 roadblockspikechance 70
update_field pursuitlevels race_04 roadblockprobability 40
update_field pursuitlevels race_03 roadblockprobability 35
update_field pursuitlevels race_02 roadblockprobability 30
update_field pursuitlevels race_01 roadblockprobability 25
update_field pursuitlevels race_01 BackupCallTimer 120
update_field pursuitlevels race_03 BackupCallTimer 110
update_field pursuitlevels race_04 BackupCallTimer 110
update_field pursuitlevels race_05 BackupCallTimer 100
update_field pursuitlevels race_06 BackupCallTimer 80
update_field pursuitlevels race_07 BackupCallTimer 75
update_field pursuitlevels race_08 BackupCallTimer 60
update_field pursuitlevels race_09 BackupCallTimer 60
update_field pursuitlevels race_10 BackupCallTimer 55
update_field damagespecs copmidsize_ce HP_THRESHOLD 1.5
update_field damagespecs copmidsize_weak HP_THRESHOLD 1.5

### OPTIONAL FEATURE 01 ###
ui_option option1_checkbox

update_field ecar copsporthench ReflectionOffset 0
update_field ecar copsporthench KitWheelOffsetFront[0] 65
update_field ecar copsporthench KitWheelOffsetRear[0] 90

ui_option option1_checkbox



### OPTIONAL FEATURE 02 ###
ui_option option2_checkbox

update_field ecar copsportghost ReflectionOffset 0
update_field ecar copsportghost KitWheelOffsetFront[0] 65
update_field ecar copsportghost KitWheelOffsetRear[0] 90

ui_option option2_checkbox



### OPTIONAL FEATURE 03 ###
ui_option option3_checkbox

update_field aivehicle copcross AccelerationMultiplier 2.5
copy_fields collisionreactions racers copcross base
update_field damagespecs copcross SUPPRESS_DIST 35
update_field damagespecs copcross DZ_FRONT HitPointScale 0.5
update_field damagespecs copcross DZ_REAR HitPointScale 0.5
update_field pvehicle copcross DefaultPresetRide CROSS
update_field pvehicle copcross MASS 1550
update_field pvehicle copcross MODEL Collision CORVETTEZ06
update_field pvehicle copcross MODEL Visual CORVETTEZ06
update_field pvehicle copcross TENSOR_SCALE X 1
update_field pvehicle copcross TENSOR_SCALE Z 1
add_field pvehicle copcross BEHAVIOR_MECHANIC_AUDIO
update_field pvehicle copcross BEHAVIOR_MECHANIC_AUDIO SoundRacer
add_field pvehicle copcross BEHAVIOR_MECHANIC_DRAW
update_field pvehicle copcross BEHAVIOR_MECHANIC_DRAW DrawRaceCar
add_field pvehicle copcross BEHAVIOR_MECHANIC_ENGINE
update_field pvehicle copcross BEHAVIOR_MECHANIC_ENGINE EngineRacer
add_field pvehicle copcross BEHAVIOR_MECHANIC_RIGIDBODY
add_field pvehicle copcross BEHAVIOR_MECHANIC_SUSPENSION
update_field pvehicle copcross BEHAVIOR_MECHANIC_SUSPENSION SuspensionRacer
add_field pvehicle copcross rigidbodyspecs
update_field pvehicle copcross rigidbodyspecs Collection racers
update_field nis arrestm38bcg CopCar[2] Collection copcross
update_field nis arrestm38bng CopCar[2] Collection copcross
update_field nis arrestm38cg CopCar[2] Collection copcross
update_field nis arrestm38ng CopCar[2] Collection copcross

update_field pursuitsupport support05 LeaderSupportOptions[0] Chance 5
update_field pursuitsupport support05 LeaderSupportOptions[0] Duration 2000
update_field pursuitsupport support05 LeaderSupportOptions[0] PriorityChance 10
update_field pursuitsupport support05 LeaderSupportOptions[0] PriorityTime 120
update_field pursuitsupport support06 LeaderSupportOptions[0] Chance 5
update_field pursuitsupport support06 LeaderSupportOptions[0] Duration 2000
update_field pursuitsupport support06 LeaderSupportOptions[0] PriorityChance 10
update_field pursuitsupport support06 LeaderSupportOptions[0] PriorityTime 120
update_field pursuitsupport support07 LeaderSupportOptions[0] Chance 5
update_field pursuitsupport support07 LeaderSupportOptions[0] Duration 2000
update_field pursuitsupport support07 LeaderSupportOptions[0] PriorityChance 10
update_field pursuitsupport support07 LeaderSupportOptions[0] PriorityTime 120
update_field pursuitsupport support08 LeaderSupportOptions[0] Chance 5
update_field pursuitsupport support08 LeaderSupportOptions[0] Duration 2000
update_field pursuitsupport support08 LeaderSupportOptions[0] PriorityChance 10
update_field pursuitsupport support08 LeaderSupportOptions[0] PriorityTime 120
update_field pursuitsupport support09 LeaderSupportOptions[0] Chance 5
update_field pursuitsupport support09 LeaderSupportOptions[0] Duration 2000
update_field pursuitsupport support09 LeaderSupportOptions[0] PriorityChance 10
update_field pursuitsupport support09 LeaderSupportOptions[0] PriorityTime 120
update_field pursuitsupport support10 LeaderSupportOptions[0] Chance 5
update_field pursuitsupport support10 LeaderSupportOptions[0] Duration 2000
update_field pursuitsupport support10 LeaderSupportOptions[0] PriorityChance 10
update_field pursuitsupport support10 LeaderSupportOptions[0] PriorityTime 120

ui_option option3_checkbox

